﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Data.Entity.ModelConfiguration;
using System.Linq;
using System.Text;

namespace GiveGraphModel
{
    public abstract class Category
    {
        public virtual int CategoryId { get; set; }        
        public virtual String Name { get; set; }       
        public virtual String Description { get; set; }
    }
    
    public sealed class CategoryConfiguration : EntityTypeConfiguration<Category>
    {
        public CategoryConfiguration()
        {
         
            Property(c => c.Description).IsRequired();
            Property(c => c.Name).IsRequired();
            
        }
    }
}
